<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	template="layout/template.xhtml">

	<ui:define name="body">

	<h:messages></h:messages>
		<h:form>
			<h:inputText value="#{testbean.input}"></h:inputText>
			<h:commandButton action="#{testbean.testdo}" value="Test"></h:commandButton>
		</h:form>
		
		<rich:dataTable id="todos" value="#{curTodos}" var="mytodo" rows="8">
					<rich:column>
						<f:facet name="header">Name</f:facet>
			#{mytodo.name}
			</rich:column>
					<rich:column>
						<f:facet name="header">Content</f:facet>
						<s:formattedText value="#{mytodo.content}" />
					</rich:column>

				</rich:dataTable>
	</ui:define>

</ui:composition>
